package com.huawei.hms.framework.network.restclient.hwhttp;

import com.huawei.hms.framework.common.StringUtils;
import java.io.OutputStream;
import javax.annotation.Nullable;

class RequestBody$2 extends RequestBody {
    final /* synthetic */ String val$content;

    RequestBody$2(String str) {
        this.val$content = str;
    }

    @Nullable
    public String contentType() {
        return RequestBody.DEFAULT_CONTENT_TYPE;
    }

    public void writeTo(OutputStream outputStream) {
    }

    public byte[] body() {
        return StringUtils.str2Byte(this.val$content);
    }
}
